-- phpMyAdmin SQL Dump
-- version 2.11.4
-- http://www.phpmyadmin.net
--
-- : localhost
-- : 2009  04  02  13:16
-- 汾: 5.0.51
-- PHP 汾: 5.2.5

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- ݿ: `thinkcms`
--

-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_access`
--

CREATE TABLE IF NOT EXISTS `thinkcms_access` (
  `groupId` smallint(6) unsigned NOT NULL,
  `nodeId` smallint(6) unsigned NOT NULL,
  `level` tinyint(1) NOT NULL,
  `parentNodeId` smallint(6) NOT NULL,
  `status` tinyint(1) default NULL,
  KEY `groupId` (`groupId`),
  KEY `nodeId` (`nodeId`),
  KEY `level` (`level`),
  KEY `parentNodeId` (`parentNodeId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- е `thinkcms_access`
--

INSERT INTO `thinkcms_access` (`groupId`, `nodeId`, `level`, `parentNodeId`, `status`) VALUES
(1, 1, 1, 0, NULL),
(1, 50, 2, 1, NULL),
(1, 37, 2, 1, NULL),
(1, 43, 3, 3, NULL),
(2, 7, 2, 1, NULL),
(2, 3, 2, 1, NULL),
(2, 8, 3, 2, NULL),
(2, 9, 3, 2, NULL),
(2, 10, 3, 2, NULL),
(1, 32, 2, 1, NULL),
(1, 12, 3, 2, NULL),
(1, 11, 3, 2, NULL),
(1, 10, 3, 2, NULL),
(1, 9, 3, 2, NULL),
(1, 8, 3, 2, NULL),
(1, 13, 3, 2, NULL),
(1, 14, 3, 2, NULL),
(1, 15, 3, 2, NULL),
(1, 16, 3, 6, NULL),
(2, 2, 2, 1, NULL),
(1, 28, 2, 1, NULL),
(1, 21, 2, 1, NULL),
(1, 20, 2, 1, NULL),
(1, 19, 2, 1, NULL),
(1, 6, 2, 1, NULL),
(1, 5, 2, 1, NULL),
(1, 27, 1, 0, NULL),
(1, 3, 2, 1, NULL),
(1, 2, 2, 1, NULL),
(1, 30, 3, 19, NULL),
(1, 31, 3, 19, NULL);

-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_ads`
--

CREATE TABLE IF NOT EXISTS `thinkcms_ads` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `adname` varchar(255) NOT NULL,
  `place` varchar(20) NOT NULL,
  `type` varchar(6) NOT NULL,
  `content` text NOT NULL,
  `morebz` varchar(200) NOT NULL,
  `status` tinyint(2) unsigned NOT NULL,
  `cTime` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_ads`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_announce`
--

CREATE TABLE IF NOT EXISTS `thinkcms_announce` (
  `id` mediumint(8) NOT NULL auto_increment,
  `aTitle` varchar(128) NOT NULL,
  `aContent` text NOT NULL,
  `status` int(2) unsigned NOT NULL,
  `cTime` int(11) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `anId` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- е `thinkcms_announce`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_article`
--

CREATE TABLE IF NOT EXISTS `thinkcms_article` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `uid` mediumint(8) unsigned NOT NULL,
  `menuId` mediumint(8) unsigned NOT NULL,
  `title` varchar(225) NOT NULL,
  `titlecolor` varchar(20) NOT NULL,
  `readCount` mediumint(11) NOT NULL,
  `commentCount` mediumint(5) unsigned NOT NULL,
  `aContent` longtext NOT NULL,
  `tags` varchar(255) NOT NULL,
  `status` tinyint(2) NOT NULL,
  `mTime` int(11) NOT NULL,
  `cTime` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_article`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_attach`
--

CREATE TABLE IF NOT EXISTS `thinkcms_attach` (
  `attid` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `type` varchar(255) default NULL,
  `size` varchar(20) NOT NULL,
  `extension` varchar(20) NOT NULL,
  `savepath` varchar(255) NOT NULL,
  `savename` varchar(255) NOT NULL,
  `module` varchar(100) NOT NULL,
  `recordId` int(11) NOT NULL,
  `userId` int(11) unsigned default NULL,
  `uploadTime` int(11) unsigned default NULL,
  `downCount` mediumint(9) unsigned default '0',
  `hash` varchar(32) NOT NULL,
  `verify` varchar(8) NOT NULL,
  `remark` varchar(255) default NULL,
  `version` mediumint(6) unsigned NOT NULL default '0',
  `updateTime` int(12) unsigned default NULL,
  `downloadTime` int(11) unsigned NOT NULL,
  PRIMARY KEY  (`attid`),
  KEY `module` (`module`),
  KEY `recordId` (`recordId`),
  KEY `userId` (`userId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_attach`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_comment`
--

CREATE TABLE IF NOT EXISTS `thinkcms_comment` (
  `acid` mediumint(5) unsigned NOT NULL auto_increment,
  `recordId` int(11) unsigned NOT NULL default '0',
  `author` varchar(50) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `url` varchar(255) NOT NULL default '',
  `ip` varchar(25) NOT NULL default '',
  `content` text NOT NULL,
  `cTime` int(11) unsigned NOT NULL default '0',
  `agent` varchar(255) default NULL,
  `status` tinyint(1) unsigned NOT NULL default '0',
  `module` varchar(50) NOT NULL,
  PRIMARY KEY  (`acid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_comment`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_group`
--

CREATE TABLE IF NOT EXISTS `thinkcms_group` (
  `id` smallint(6) unsigned NOT NULL auto_increment,
  `name` varchar(20) NOT NULL,
  `pid` smallint(6) default NULL,
  `status` tinyint(1) unsigned default NULL,
  `remark` varchar(255) default NULL,
  `ename` varchar(5) default NULL,
  PRIMARY KEY  (`id`),
  KEY `parentId` (`pid`),
  KEY `ename` (`ename`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- е `thinkcms_group`
--

INSERT INTO `thinkcms_group` (`id`, `name`, `pid`, `status`, `remark`, `ename`) VALUES
(1, 'Ա', NULL, 1, 'һԱȨ', NULL),
(2, 'ͨû', NULL, 1, 'һûȨ', NULL);

-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_groupuser`
--

CREATE TABLE IF NOT EXISTS `thinkcms_groupuser` (
  `groupId` mediumint(9) unsigned default NULL,
  `userId` mediumint(9) unsigned default NULL,
  KEY `groupId` (`groupId`),
  KEY `userId` (`userId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- е `thinkcms_groupuser`
--

INSERT INTO `thinkcms_groupuser` (`groupId`, `userId`) VALUES
(1, 1);

-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_links`
--

CREATE TABLE IF NOT EXISTS `thinkcms_links` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `lname` varchar(32) NOT NULL,
  `linkto` varchar(255) NOT NULL,
  `lpic` varchar(255) NOT NULL,
  `lintro` varchar(128) NOT NULL,
  `displayorder` int(64) unsigned NOT NULL default '1',
  `status` tinyint(1) unsigned NOT NULL default '1',
  `cTime` int(11) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- е `thinkcms_links`
--

INSERT INTO `thinkcms_links` (`id`, `lname`, `linkto`, `lpic`, `lintro`, `displayorder`, `status`, `cTime`) VALUES
(1, 'ThinkCMS', 'http://www.tpcms.cn', 'http://www.tpcms.cn/CMS/Tpl/default/Public/images/logo8831.gif', 'ThinkPHP', 0, 1, 0);

-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_menu`
--

CREATE TABLE IF NOT EXISTS `thinkcms_menu` (
  `id` mediumint(8) NOT NULL auto_increment,
  `moduleId` varchar(30) NOT NULL,
  `mname` varchar(30) NOT NULL,
  `mcnname` varchar(30) NOT NULL,
  `orderId` tinyint(2) NOT NULL,
  `topMenu` tinyint(2) unsigned NOT NULL,
  `indexMenu` tinyint(2) unsigned NOT NULL,
  `status` tinyint(2) NOT NULL,
  `cTime` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_menu`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_module`
--

CREATE TABLE IF NOT EXISTS `thinkcms_module` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `modname` varchar(30) NOT NULL,
  `modcnname` varchar(30) NOT NULL,
  `admenu` tinyint(1) unsigned NOT NULL,
  `type` tinyint(2) unsigned NOT NULL,
  `status` tinyint(2) unsigned NOT NULL,
  `cTime` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;

--
-- е `thinkcms_module`
--

INSERT INTO `thinkcms_module` (`id`, `modname`, `modcnname`, `admenu`, `type`, `status`, `cTime`) VALUES
(1, 'Article', '', 1, 1, 1, 0);

-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_node`
--

CREATE TABLE IF NOT EXISTS `thinkcms_node` (
  `id` smallint(6) unsigned NOT NULL auto_increment,
  `name` varchar(20) NOT NULL,
  `title` varchar(50) default NULL,
  `status` tinyint(1) unsigned default NULL,
  `remark` varchar(255) default NULL,
  `seqNo` smallint(6) unsigned default NULL,
  `pid` smallint(6) unsigned NOT NULL,
  `level` tinyint(1) unsigned NOT NULL,
  `type` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `name` (`name`),
  KEY `parentId` (`pid`),
  KEY `level` (`level`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=51 ;

--
-- е `thinkcms_node`
--

INSERT INTO `thinkcms_node` (`id`, `name`, `title`, `status`, `remark`, `seqNo`, `pid`, `level`, `type`) VALUES
(1, 'Admin', '̨Ŀ', 1, '̨Ŀ', NULL, 0, 1, 0),
(2, 'Base', 'ģ', 1, 'Ŀģ', NULL, 1, 2, 0),
(3, 'Index', 'Ĭģ', 1, 'ĿĬģ', NULL, 1, 2, 0),
(4, 'Node', 'ڵ', 1, 'Ȩڵ', NULL, 1, 2, 0),
(5, 'Group', 'Ȩ޹', 1, 'Ȩ޹ģ', NULL, 1, 2, 0),
(6, 'User', 'û', 1, 'ûģ', NULL, 1, 2, 0),
(8, 'index', 'б', 1, '', NULL, 2, 3, 0),
(9, 'add', '', 1, '', NULL, 2, 3, 0),
(10, 'edit', '༭', 1, '', NULL, 2, 3, 0),
(11, 'insert', 'д', 1, '', NULL, 2, 3, 0),
(12, 'update', '', 1, '', NULL, 2, 3, 0),
(13, 'delete', 'ɾ', 1, '', NULL, 2, 3, 0),
(14, 'forbid', '', 1, '', NULL, 2, 3, 0),
(15, 'resume', 'ָ', 1, '', NULL, 2, 3, 0),
(16, 'resetPwd', '', 1, '', NULL, 6, 3, 0),
(17, '1', '1', 1, '1', NULL, 7, 3, 0),
(18, 'Options', 'վ', 1, 'վ', NULL, 1, 2, 0),
(19, 'Module', 'ģ', 1, 'ģ', NULL, 1, 2, 0),
(20, 'Menu', 'Ŀ', 1, 'Ŀ', NULL, 1, 2, 0),
(21, 'Links', 'ӹ', 1, 'ӹ', NULL, 1, 2, 0),
(22, 'cache', '', 1, '', NULL, 18, 3, 0),
(28, 'Pages', 'Զҳ', 1, 'Զҳ', NULL, 1, 2, 0),
(30, 'insert', 'ģ', 1, 'ģ', NULL, 19, 3, 0),
(31, 'update', 'ģ', 1, 'ģ', NULL, 19, 3, 0),
(32, 'Article', '¹', 1, '¹', NULL, 1, 2, 0),
(33, 'insert', '', 1, '', NULL, 32, 3, 0),
(34, 'add', '', 1, '', NULL, 32, 3, 0),
(35, 'edit', '޸', 1, '޸', NULL, 32, 3, 0),
(36, 'update', '', 1, '', NULL, 32, 3, 0),
(37, 'Announce', '', 1, '', NULL, 1, 2, 0),
(38, 'index', '޸', 1, '޸', NULL, 18, 3, 0),
(39, 'save', '޸', 1, '޸', NULL, 18, 3, 0),
(40, 'themes', '޸', 1, '޸', NULL, 18, 3, 0),
(41, 'configTheme', 'ģ', 1, 'ģ', NULL, 18, 3, 0),
(42, 'clearCache', '', 1, '', NULL, 18, 3, 0),
(43, 'index', 'ҳ', 1, 'ҳ', NULL, 3, 3, 0),
(50, 'Ads', '', 1, '', NULL, 1, 2, 0);

-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_pages`
--

CREATE TABLE IF NOT EXISTS `thinkcms_pages` (
  `id` mediumint(8) NOT NULL auto_increment,
  `pname` varchar(30) NOT NULL,
  `pcnname` varchar(30) NOT NULL,
  `pContent` text NOT NULL,
  `type` tinyint(2) NOT NULL,
  `orderId` tinyint(2) NOT NULL,
  `status` tinyint(2) NOT NULL,
  `cTime` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_pages`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_tag`
--

CREATE TABLE IF NOT EXISTS `thinkcms_tag` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `count` mediumint(6) unsigned NOT NULL,
  `module` varchar(100) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `name` (`name`),
  KEY `module` (`module`),
  KEY `count` (`count`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_tag`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_tagged`
--

CREATE TABLE IF NOT EXISTS `thinkcms_tagged` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `userId` int(11) unsigned NOT NULL,
  `recordId` int(11) unsigned NOT NULL,
  `tagId` int(11) NOT NULL,
  `tagTime` int(11) NOT NULL,
  `module` varchar(25) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `module` (`module`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- е `thinkcms_tagged`
--


-- --------------------------------------------------------

--
-- Ľṹ `thinkcms_user`
--

CREATE TABLE IF NOT EXISTS `thinkcms_user` (
  `uid` mediumint(8) unsigned NOT NULL auto_increment,
  `type` varchar(30) NOT NULL,
  `username` varchar(32) NOT NULL,
  `password` varchar(32) NOT NULL,
  `email` varchar(255) NOT NULL,
  `status` tinyint(2) unsigned NOT NULL,
  `registerTime` int(11) unsigned NOT NULL,
  `lastloginTime` int(11) unsigned NOT NULL,
  `cTime` int(11) unsigned NOT NULL,
  PRIMARY KEY  (`uid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=45 ;

--
-- е `thinkcms_user`
--

INSERT INTO `thinkcms_user` (`uid`, `type`, `username`, `password`, `email`, `status`, `registerTime`, `lastloginTime`, `cTime`) VALUES
(1, 'a', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'admin@admin.com', 1, 0, 1238678152, 0);
